<template>
  <view class="yh-page">
		
  </view>
</template>

<script>

  export default 
  {
    //计算属性
    computed:
    {
		
    },
    //监听
    watch:
    {

    },
	//组件
	components:
	{
	
	},
    data() 
    {
    	return{
			
        };
    },
    //页面加载
    onLoad() 
    {

    },
    //页面显示
    onShow() 
    {

    },
    //页面初次渲染完成
    onReady()
    {

    },
    //页面隐藏
    onHide()
    {

    },
	//下来刷新
	onPullDownRefresh()
	{
		console.log('onPullDownRefresh');
		
		//this.getIndexGoods()
		
		
	},
	//页面触底
	onReachBottom()
	{
		//console.log('onReachBottom')
		this.showLoadMore = true;
		uni.startPullDownRefresh();
		
		if(this.loadMoreMax >= this.goodsList.length )
		{
			this.loadMoreText = "没有更多数据了!"
			
			setTimeout(function() 
			{
				uni.stopPullDownRefresh()
				
			}, 1000);
			
			return;
		}
		this.goodsWhere.currentPage += 1

		this.getIndexGoods()
	},
    //页面卸载
    onUnload()
    {
		this.loadMoreMax = 0
		this.loadMoreText = "加载更多",
		this.showLoadMore = false;
    },
    methods:{
		
    }
  }
</script>
<style lang="scss" scoped>
.yh-page{
	width: 750rpx;
	height:auto;
	text-align: center;
}
</style>
